James McCreight & Erin Towler
Codes to reproduce the (data-driven) figures and tables in our manuscript:
Towler, E. and McCreight, J. L.: A Wavelet-Based Approach to Streamflow Event Identification and Modeled Timing Error Evaluation, Hydrol. Earth Syst. Sci. Discuss. [preprint], https://doi.org/10.5194/hess-2020-323, in review, 2020.
options(warn=1)
options(repr.plot.res = 300)
devtools::install_github("https://github.com/NCAR/rwrfhydro", dependencies="")
library(rwrfhydro)
library(expss)
library(IRdisplay)
Downloading GitHub repo NCAR/rwrfhydro@HEAD
✔ checking for file ‘/private/var/folders/7b/0wwfd1h5733bz1jc0tn836lm000qpg/T/RtmpZI1kqE/remotes1188d362f69a9/NCAR-rwrfhydro-f6e03a4/DESCRIPTION’ ─ preparing ‘rwrfhydro’: ✔ checking DESCRIPTION meta-information ─ excluding invalid files Subdirectory 'R' contains invalid file names: ‘calculate_stats_web.Rsh’ ‘usgs_get_active_huc.Rsh’ ‘usgs_process_active_huc.Rsh’ ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ looking to see if a ‘data/datalist’ file should be added ─ building ‘rwrfhydro_1.0.2.tar.gz’ (2.1s)
Installing package into ‘/Users/jamesmcc/r_libs/3.5.2’ (as ‘lib’ is unspecified) To check rwrfhydro updates run: CheckForUpdates() Use 'expss_output_viewer()' to display tables in the RStudio Viewer. To return to the console output, use 'expss_output_default()'.
sessionInfo()
R version 3.5.2 (2018-12-20) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS 10.15.7 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] IRdisplay_1.0 expss_0.10.7 rwrfhydro_1.0.2 loaded via a namespace (and not attached): [1] Rcpp_1.0.4 pillar_1.4.7 compiler_3.5.2 [4] prettyunits_1.1.1 base64enc_0.1-3 remotes_2.2.0 [7] tools_3.5.2 testthat_2.3.2 digest_0.6.27 [10] pkgbuild_1.1.0 uuid_0.1-4 pkgload_1.1.0 [13] checkmate_2.0.0 htmlTable_2.1.0 jsonlite_1.7.2 [16] evaluate_0.14 memoise_1.1.0 lifecycle_0.2.0 [19] rlang_0.4.9 rstudioapi_0.13 cli_2.2.0 [22] curl_4.3 IRkernel_1.1.1.9000 xfun_0.19 [25] stringr_1.4.0 knitr_1.30 repr_1.1.0 [28] withr_2.3.0 htmlwidgets_1.5.3 desc_1.2.0 [31] fs_1.3.2 devtools_2.3.2 rprojroot_2.0.2 [34] data.table_1.12.8 glue_1.4.2 R6_2.5.0 [37] processx_3.4.5 fansi_0.4.1 foreign_0.8-71 [40] sessioninfo_1.1.1 pbdZMQ_0.3-3 callr_3.5.1 [43] purrr_0.3.3 magrittr_2.0.1 matrixStats_0.58.0 [46] backports_1.2.1 ps_1.5.0 ellipsis_0.3.1 [49] htmltools_0.4.0 usethis_2.0.0 assertthat_0.2.1 [52] stringi_1.4.6 crayon_1.3.4
source('figure_02.R') # Suppress output manually
plot(figure)
source('figure_03.R') # Suppress output manually
plot(figure)
source('table_02.R') # Suppress output manually
display_html(repr_html.etable(output_table))
|
source('figure_04.R') # Suppress output manually
plot(figure)
source('figure_05.R') # Suppress output manually
plot(figure)
source('table_03.R') # Suppress output manually
display_html(repr_html.etable(output_table))
|
source('figure_06.R') # Suppress output manually
plot(figure)
source('figure_07.R') # Suppress output manually
plot(figure)
source('table_04.R') # Suppress output manually
display_html(repr_html.etable(output_table))
|
source('figure_08.R') # Suppress output manually
plot(figure)
source('table_05.R') # Suppress output manually
display_html(repr_html.etable(output_table))
|
source('figure_09.R') # Suppress output manually
plot(figure)
source('figure_10.R') # Suppress output manually
plot(figure)
source('table_06.R') # Suppress output manually
display_html(repr_html.etable(output_table))
|
source('figure_11.R') # Suppress output manually
plot(figure)
source('table_07.R') # Suppress output manually
display_html(repr_html.etable(output_table))
|